#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H

#include <QObject>
#include <QTcpSocket>

class MyTcpSocket : public QObject
{
    Q_OBJECT
public:
    explicit MyTcpSocket(QObject *parent = 0);
    void doConnect();

public slots:
    void readyRead();
    void connected();
    void disconnected();
    void bytesWritten(qint64 bytes);
private:
    QTcpSocket *socket;
};

#endif // MYTCPSOCKET_H
